﻿using DotNetty.Codecs;
using DotNetty.Transport.Channels;
using System;
using System.Collections.Generic;
using System.Text;

namespace EmbededChannelTest
{
    public class IntToStringEncoder : MessageToMessageEncoder<int>
    {
        protected override void Encode(IChannelHandlerContext context, int message, List<object> output)
        {
            output.Add(message.ToString());
        }
    }
}
